<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加考试科目</title>

</head>
<body>
<body class="no-skin">

	<!-- #section:basics/navbar.layout -->


	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">
		<script type="text/javascript">
			try {
				ace.settings.check('main-container', 'fixed')
			} catch (e) {
			}
		</script>





		<div class="main-content">
			<!-- #section:basics/content.breadcrumbs -->
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a>
					</li>

					<li><a href="#">Tables</a></li>
					<li class="active">考试科目</li>
					<li class="active">修改科目资料</li>
				</ul>
				<!-- /.breadcrumb -->

				<!-- #section:basics/content.searchbox -->
				<div class="nav-search" id="nav-search">
					<form class="form-search">
						<span class="input-icon"> <input type="text"
							placeholder="Search ..." class="nav-search-input"
							id="nav-search-input" autocomplete="off" /> <i
							class="ace-icon fa fa-search nav-search-icon"></i>
						</span>
					</form>
				</div>
				<!-- /.nav-search -->

				<!-- /section:basics/content.searchbox -->
			</div>

			<!-- /section:basics/content.breadcrumbs -->
			<div class="page-content">
				<!-- #section:settings.box -->
			
				<!-- /.ace-settings-container -->

				<!-- /.page-header -->

				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->
						<div class="row">
							<div class="col-xs-12"></div>
							<!-- /.span -->
						</div>

						<!-- /.row -->

						<div class="hr hr-18 dotted hr-double"></div>


						<div id="userData">
							<div id="messageDiv">
								<c:if test="${not empty message}">
									<div class="alert alert-success alert-dismissible" role="alert">
										<button type="button" class="close" data-dismiss="alert"
											aria-label="Close">
											<span aria-hidden="true">&times;</span>
										</button>
										<strong class="center">${message}!</strong>
									</div>
								</c:if>
							</div>

							<h4 class="center">添加考试科目资料</h4>

							<form:form action="${subject.id}" method="post" modelAttribute="subject"
								class="form-horizontal">

								<div class="form-group ">
									<label for="id" class="col-sm-5 control-label"><spring:message
											code="subject.id.message" /></label>
									<div class="col-sm-2">
										<form:input path="id" id="id" class="form-control" />
										<form:errors path="id" cssClass="error" cssStyle="color:red" />
									</div>
								</div>
								<div class="form-group">
									<label for="name" class="col-sm-5	 control-label"><spring:message
											code="subject.name.message" /></label>
									<div class="col-sm-2">
										<form:input path="name" id="name" class="form-control" />
										<form:errors path="name" cssClass="error" cssStyle="color:red" />
									</div>
								</div>
									<div class="form-group">
									<label for="name" class="col-sm-5	 control-label"><spring:message
											code="subject.description.message" /></label>
									<div class="col-sm-2">
										<form:input path="description" id="description" class="form-control" />

									</div>
								</div>

								<div class="form-group">
									<label for="name" class="col-sm-5 control-label"><spring:message
											code="subject.test_count.message" /></label>
									<div class="col-sm-2">
										<form:input path="test_count" id="test_count" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="email" class="col-sm-5 control-label"><spring:message
											code="subject.total_time.message" /></label>
									<div class="col-sm-2">
										<form:input path="total_time" id="total_time" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="tel" class="col-sm-5 control-label"><spring:message
											code="subject.total_score.message" /></label>
									<div class="col-sm-2">
										<form:input path="total_score" id="total_score" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="address" class="col-sm-5 control-label"><spring:message
											code="subject.status.message" /></label>
									<div class="col-sm-4">
										<form:input path="status" id="status" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-offset-5	 col-sm-10">
										<button type="submit" class="btn btn-default">提交</button>
									</div>
								</div>

							</form:form>
						</div>
						<div class="hr hr-18 dotted hr-double"></div>
						<!-- PAGE CONTENT ENDS -->
					</div>
					<!-- /.col -->
				</div>
				<!-- /.row -->
			</div>
			<!-- /.page-content-area -->
		</div>
		<!-- /.page-content -->
	</div>
	<!-- /.main-content -->



	<a href="#" id="btn-scroll-up"
		class="btn-scroll-up btn btn-sm btn-inverse"> <i
		class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
	</a>

	<!-- /.main-container -->

	<!-- basic scripts -->

	<script type="text/javascript">
		window.jQuery
				|| document
						.write("<script src='${pageContext.request.contextPath}/static/assets/js/jquery.min.js'>"
								+ "<"+"/script>");
	</script>




	<script type="text/javascript">
		if ('ontouchstart' in document.documentElement)
			document
					.write("<script src='${pageContext.request.contextPath}/static/assets/js/jquery.mobile.custom.min.js'>"
							+ "<"+"/script>");
	</script>
	<script
		src="${pageContext.request.contextPath}/static/assets/js/bootstrap.min.js"></script>

	<script
		src="${pageContext.request.contextPath}/static/assets/js/jquery.dataTables.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/assets/js/jquery.dataTables.bootstrap.js"></script>



	<!-- inline scripts related to this page -->
	<script type="text/javascript">
		jQuery(function($) {
			var oTable1 = $('#sample-table-2').dataTable({
				bAutoWidth : false,
				"aoColumns" : [ {
					"bSortable" : false
				}, null, null, null, null, null, {
					"bSortable" : false
				} ],
				"aaSorting" : [],

			});

			$(document).on(
					'click',
					'th input:checkbox',
					function() {
						var that = this;
						$(this).closest('table').find(
								'tr > td:first-child input:checkbox').each(
								function() {
									this.checked = that.checked;
									$(this).closest('tr').toggleClass(
											'selected');
								});
					});

			$('[data-rel="tooltip"]').tooltip({
				placement : tooltip_placement
			});
			function tooltip_placement(context, source) {
				var $source = $(source);
				var $parent = $source.closest('table')
				var off1 = $parent.offset();
				var w1 = $parent.width();

				var off2 = $source.offset();

				if (parseInt(off2.left) < parseInt(off1.left)
						+ parseInt(w1 / 2))
					return 'right';
				return 'left';
			}

		})
	</script>

	<script
		src="${pageContext.request.contextPath}/static/assets/js/ace/elements.onpage-help.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/assets/js/ace/ace.onpage-help.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/rainbow.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/generic.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/html.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/css.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/javascript.js"></script>
</html>
</body>
</html>


</body>
</html>